<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/21
 * Time: 9:37
 */
$data = [
    [
        'mobile'=>'15567678989',
        'prize'=>'500点阅读点数',
        'date'=>'2017-9-10 12:30:40'
    ],
    [
        'mobile'=>'15456788989',
        'prize'=>'500点阅读点数',
        'date'=>'2017-9-12 12:30:40'
    ],
    [
        'mobile'=>'15523238989',
        'prize'=>'免费1个月',
        'date'=>'2017-9-13 12:30:40'
    ]
];

?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

<table border="1">
    <tr>
        <th>手机号</th>
        <th>奖项</th>
        <th>时间</th>
    </tr>
    <?php
    foreach($data as $item) {
        $s1 = preg_replace('/(\d{3})(\d{4})(\d{4})/',"$1****$3",$item['mobile']);
        ?>
        <tr>
            <td><?=$s1 ?></td>
            <td><?=$item['prize'] ?></td>
            <td><?=$item['date'] ?></td>
        </tr>
        <?php
    }
    ?>
    <tr>
        <td>手机号</td>
        <td>奖项</td>
        <td>时间</td>
    </tr>
    <tr>
        <td>手机号</td>
        <td>奖项</td>
        <td>时间</td>
    </tr>
</table>

</body>
</html>